package com.xbongbong.pro.form.pojo.dto;

import com.xbongbong.paas.toolbox.wrap.BaseDTO;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.validation.constraints.NotEmpty;

/**
 * @author feng.zheng
 * @date 2019/5/25 15:34
 */
@Getter
@Setter
@ToString
public class FormConfigGetDTO extends BaseDTO{
    private static final long serialVersionUID = -3482615301614298792L;
    /**
     * 业务类型
     */
    @NotEmpty(message = "{dto.msg.formAssociationList.businessType.NotNull}")
    private Integer businessType;
    /**
     * 表单id
     */
    private Long formId;
    /**
     * config
     */
    private String config;

    public FormConfigGetDTO() {
    }

    public FormConfigGetDTO(@NotEmpty(message = "{dto.msg.formAssociationList.businessType.NotNull}") Integer businessType, Long formId, String corpid) {
        this.businessType = businessType;
        this.formId = formId;
        setCorpid(corpid);
    }
}
